package com.example.test_witns.pojo;

public class TodoTask {
    private long id;
    private String userEmail;
    private String title;
    private String category;
    private int priority;
    private String dueDate;
    private String dueTime;
    private boolean isCompleted;
    private String notes; // 备注
    private String createTime;

    public String getOwnerUserEmail() {
        return userEmail;
    }

    public void setOwnerUserEmail(String ownerUserEmail) {
        this.userEmail = ownerUserEmail;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public String getDueDate() {
        return dueDate;
    }

    public void setDueDate(String dueDate) {
        this.dueDate = dueDate;
    }

    public boolean isCompleted() {
        return isCompleted;
    }

    public void setCompleted(boolean completed) {
        isCompleted = completed;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getDueTime() {
        return dueTime;
    }

    public void setDueTime(String dueTime) {
        this.dueTime = dueTime;
    }

    // 构造函数

    public TodoTask(String title, String category, int priority, String dueDate, boolean isCompleted, String notes, String createTime, String dueTime) {
        this.id = 0;
        this.title = title;
        this.category = category;
        this.priority = priority;
        this.dueDate = dueDate;
        this.isCompleted = isCompleted;
        this.notes = notes;
        this.createTime = createTime;
        this.dueTime = dueTime;
    }

    // Getters & Setters
    // [...]
}